﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 项目框架.SignalMonitor
{
    public partial class FrmInputSignal : Form
    {
        System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
        public FrmInputSignal()
        {
            InitializeComponent();
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            timer.Tick += timer_tick;
            timer.Interval = 100;
            timer.Start();

        }
        private void timer_tick(object sender, EventArgs e)
        {
            ucLamp1.isON = input.valve1_open;
            ucLamp2.isON = input.start;
        }
    }
}
